﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;

namespace PSE.ProcessManager.Server.Process.Configuration
{
    public class ProcessConfigurationSection : ConfigurationSection
    {
        [ConfigurationProperty("enabled", IsRequired = false, DefaultValue = true)]
        public bool Enabled
        {
            get
            {
                return (bool)this["enabled"];
            }
            set
            {
                this["enabled"] = value;
            }
        }

        [ConfigurationProperty("identity")]
        public IdentityConfigurationElement Identity
        {
            get
            {
                return (IdentityConfigurationElement)this["identity"];
            }
        }

        [ConfigurationProperty("settings")]
        public ProcessConfigurationElementCollection Settings
        {
            get
            {
                return (ProcessConfigurationElementCollection)this["settings"];
            }
        }
    }
}
